-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify two colorbar tests and remove all others #2981
Conversation
pygmt/tests/test_colorbar.py
Outdated
@pytest.mark.mpl_image_compare | ||
def test_colorbar_shading_list(): | ||
""" | ||
Create colorbar and set shading by passing the high/low values as a list. | ||
""" | ||
fig = Figure() | ||
fig.basemap(region=[0, 10, 0, 10], projection="X15c", frame="a") | ||
fig.colorbar(cmap="geo", shading=[-0.7, 0.2], frame=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, added it back but changed the projection to X8c
to have a smaller image size.
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Report last updated at commit c35e2d7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little uncomfortable removing these tests, but ok then. Just one optional suggestion, and make sure to update the title before merge.
See #2961 (comment) for context.
This PR removes all existing colorbar tests and add a new, simpler one.